#include <stdio.h>
int main()
{
	int x,y; 
	printf("Please input x:");
	scanf("%d",&x);
	if(x<0)
	y=3*x+2;
	else
	y=-x+1;
	printf("y=%d\n",y);\
	return 0;
}
